Created: 12 November 2018
Last update: -
By: Ansonika
Thank you for purchasing my theme. If you have any questions that are beyond the scope of this help file, please post a comment on item page. If you are happy with the theme, please TAKE A MOMENT TO RATE IT from your DOWNLOADS PAGE. Thanks so much!
This theme has a fixed centered layout 1170px. It's based on Boostrap framework grid. It's ULTRA RESPONSIVE!!
very type of company can create Survey, Quotation, Review or Registration Wizard in order to catch new potential customers and usefull data like contacts, trends, answers or requests. It comes with nice UI/UX form elements design: radio, checkbox, select, range slider. The results will be sent via email and confirmation email is sent to the user who fill the form. At the moment comes with 4 demo versions.
The css files are inside the css folder (not minified and minified versions included) .To modify colors, typografy, button style ecc....find the realtive comment line in style.css. We reccomend to apply every changes in css/custom.css in order to makes future updates easly to apply. Below how the file is organized:
1. SITE STRUCTURE and TYPOGRAPHY
- 1.1 Typography
- 1.2 Buttons
- 1.3 Structure
2. CONTENT
- 2.1 Wizard
- 2.2 Success submit
- 2.3 Inner pages
3. COMMON
- 3.1 Misc
- 3.2 Spacing
Change the logo
To change the logo, simply use your PNG24 file (suggested logo height is 35px). Below how is coded
Add one more step to the wizard
Each step is defined by a div, so simply duplicate one of them. Below an example of the structure:
<div class="step"> your content....
</div><!-- end step-->
Make an input field, select or radio/checkbox required or not.
Simply add or remove the class "required" to the element. To change the error message go to js/common_script.js and under the section jQuery Validation Plugin at line 4957 aprox, then recreate the minfied version.
Add one more questions with checkbox answer
Open the HTML page (let's take an example quotation-wizard-version.html). As you can see the name of the input has to be the same with at the end [], each one have a different value. in the example below we add 2 more checkbox questions:
<h3>Question?</h3>
<div class="form-group">
<label class="container_check version_2">Custom interface and layout <input type="checkbox" value="Custom interface and layout" name="question_1[]" class="required" onchange="getVals(this, 'question_1');"> </label>
</div>
<div class="form-group">
<label class="container_check version_2">Web site design <input type="checkbox" value="Web" name="question_1[]" class="required" onchange="getVals(this, 'question_1');"> </label>
</div> $message .= "\n1) Question?\n" ;
foreach($_POST['question_1'] as $value)
{
$message .= "- " . trim(stripslashes($value)) . "\n";
};
Antispam protection:
spam bots usually disable javascripts to avoid the jquery validation or automatically fill all the input fields and send the email. Now the php submission script link is removed from the html and placed inside the the js script. So if the js will be disabled, the form will be not processed. The js script check also if the hidden input field (id website) is filled by the spam bot...if filled the form will be not processed.
LEAVE THE HIDDEN INPUT FIELD WEBSITE for the reason above
<input id="website" name="website" type="text" value="">
How summary step works:
Every input field must have onchange="getVals(this, 'question_1');" where "question_1" correspond to the input field name (just only and exception for the textarea that have onkeyup="getVals(this, 'question_1');) Then in the summary step the id <p id="question_1"></p> Open for example survey_func.js case 'question_1': (--> input name)
// Get the value for a radio
var value = $(formControl).val();
$("#question_1").text(value); (--> id where the input value where displaied in the html )
break; Same logic can be applied for every type of input, except for the checkbox type that have an array: case 'question_2': // Get name for set of checkboxes var checkboxName = $(formControl).attr('name'); // Get all checked checkboxes var value = [];
$("input[name*='" + checkboxName + "']").each(function () {
// Get all checked checboxes in an array
if (jQuery(this).is(":checked")) {
value.push($(this).val()); } }); $("#question_2").text(value.join(", ")); break;
THE GRID
Please refer to this documentation Boostrap
Below the code of the php file that process the wizard data and send the email.
If you doesn't recieve the email please first check:
1) Your spam folder
2) If you hosting requires special settings (SMTP Authentication)
3) If your sender email has to be the same from your hosting provider
Main settings:
1) $to = change with your email address
2) Edit the text as you need (\n is equal to a br)
3) DelayRedirect on body tag = increse the value to get more delay on the redirect page
4) window.location = "your redirect page"
Note that the contact form works a little bit different. Edit the file in the assets folder following the comments on code.
This theme use these Javascript (minified versions included). i've included all the common theme scripts in a single file for a fast edit and load (or if you prefer you can find the same js in separate files in js folder).
common_scripts.js content:
I've used the following images, icons or other files as listed. For the js listed below, you can find the more documentation on the relative sites.
Images are not included.
Once again, thank you so much for purchasing this theme. Please take a moment to rate it from your Downloads page.
Ansonika